package com.xiye.system.config;

import com.xiye.common.util.Const;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 西野
 * @version V1.0
 * @title RabbitConfig.java
 * @package com.xiye.system.config
 * @description RabbitMQ消息队列
 * @date 2018-08-28
 */
@Configuration
public class RabbitConfig {

    /*
     * 权限队列
     */
    @Bean
    public Queue initRightsQueue() {
        return new Queue(Const.RIGHTS_QUEUE);
    }
}
